<extend name="Public/base"/>
<block name="head">
	<link href="__CSS__/seller.css" rel="stylesheet">
</block>
</head>
<!--主体 start-->
<block name="body">
<div class="container" >
   
    <div class="row">
        <div class="col-md-12">
            <div class="" id='artlist'>                
                <div class="list-boxes" style='box-shadow: 0 1px 2px rgba(0,0,0,0.05);'>
                    <h2>{$promotion.promotion_name}</h2>
                    </br>
                    <dl>
                        <dt style=''>
                        <p style=''><span>活动时间</span>{:date('Y-m-d',$promotion['start_time'])}&nbsp;&nbsp;~&nbsp;&nbsp;{:date('Y-m-d',$promotion['end_time'])}</p>
                         <p style=''><span>报名要求</span>{$promotion['condition']}</p>      
                        </dt>
                        <dd>                                
                            <img src='{$promotion.pic_url|get_image_url}' alt="{$promotion.promotion_name}">
                        </dd>
                    </dl>                        
                    
                </div>
            </div>

            <div class="tc-box first-box article-box">
                <h2 style='font-size:25px;padding:5px;'>活动详情</h2>
                <hr>
                <div id="article_content" style='padding:10px;'>{:stripslashes($promotion['discription'])}</div>
            </div>

            <div class="tc-box first-box article-box">
                <h2 style='font-size:25px;padding:5px;'>申请报名</h2>
                <hr>                
                <form action="{:U('Seller/apply')}" method="post" enctype="multipart/form-data">
                    
                <div id="baoming" >
                    <dl>
                        <dt>联系人</dt>
                        <dd><input type='text' name='contact' /></dd>
                    </dl>
                    <dl>
                        <dt>联系方式(手机、QQ、旺旺、邮箱等)</dt>
                        <dd><input type='text' name='contact_info' /></dd>
                    </dl>
                    <dl>
                        <dt>店铺/网站地址</dt>
                        <dd><input type='text' name='shop_url' /></dd>
                    </dl>
                    <dl>
                        <dt>商家简介</dt>
                        <dd><textarea name="brief_description"></textarea></dd>
                    </dl>

                               
                    <dl>                        
                        <dd><button class="btn btn-success">提交报名</button></dd>
                        <input name="p_id" value="{$promotion.id}" type="hidden">
                    </dl>
                    </form>
                </div>
            </div>

        </div>
      
    </div>
</div>
<!--主体 end-->

<include file="Public:scripts" />
<script src="__JS__/slippry.min.js"></script>
<script type="text/javascript">
                                var loadObj = $('.pagination div');
                                var totalpage = {$totalpage};
                                var nowpage = 1;
                                if (totalpage == nowpage)
                                    loadObj.html('没有更多最后一页');
                                $('.pagination div').click(function () {
                                    if (totalpage == nowpage) {
                                        return false;
                                    }
                                    $.get('index.php?m=article&a=artlist&ajax=1&sort_id={$sort_id}&p=' + (nowpage + 1), function (html) {
                                        $("#artlist .list-boxes:last").after(html);
                                    });
                                });
</script>
</block>
